<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">

        <div v-if="age >= 18">去网吧偷耳机</div>
        <div v-else>去公园捡垃圾</div>

        <!-- 多分支 -->
        <div v-if="money >= 8000">去按摩</div>
        <div v-else-if="money >= 6000">去洗脚</div>
        <div v-else-if="money >= 3000">去吃一顿</div>
        <div v-else>被她老婆打一顿，让他再去努力赚钱</div>
    </div>
    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    age: 16,
                    money: 10000
                }
            },
        })
    </script>
</body>
</html>